﻿using System.Collections.Generic;
using System.Threading.Tasks;
using BCEntity.OA.Attendance.AttendanceCheckInFlow;

namespace BCData.OA.Attendance.AttendanceCheckInFlow
{
    public interface IAttendanceCheckInFlowData
    {
        /// <summary>
        /// 新增一条考勤打卡记录流水
        /// </summary>
        /// <param name="entitys">打卡信息</param>
        /// <returns></returns>
        Task<AttendanceCheckInFlowEntity> InserAsync(AttendanceCheckInFlowEntity entity);

        /// <summary>
        /// 获取指定打卡记录下的流水
        /// </summary>
        /// <param name="checkInRecordId">打卡记录Id</param>
        /// <returns></returns>
        Task<IEnumerable<AttendanceCheckInFlowEntity>> GetListByCheckInRecordIdAsync(long checkInRecordId);
    }
}
